package es.esp.ut04;


public class Test {
	
	
	public static void suma (int suma, int a, int b ){
		
		suma = a + b;
	}
	
	public static void suma (Integer suma, Integer a, Integer b ){
		System.out.println(suma);
		suma = a + b;
		System.out.println(suma);
	}
	
	
	public static void main(String args[]) {
		
		/*	
		Persona p1 = new Persona();
		Persona p2 = new Persona();
		
	
		
		System.out.println(	p1.getNombre());
		System.out.println(	p2.getNombre());
		
		try {
			System.out.println(Factorial.factorial(-5));
		} catch (Exception e) {
			System.err.println(e.getMessage());
		}
		*/
	
		Integer resultReferencia = new Integer(0);
		Integer a = new Integer(2);
		Integer b = new Integer(3);
		int resultValor = 0;
		
		suma(resultReferencia,a,b);
		System.out.println(resultReferencia);
		suma(resultValor,2,3);
		
		
		
	}

}






